﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ganosoft.Container;
using System.ServiceModel;
using Ganosoft.Aspect;

namespace GanoESB.Business
{
    [CallbackBehavior(
        ConcurrencyMode = ConcurrencyMode.Multiple, 
        UseSynchronizationContext = false)]
    public class ServiceFinder : IServiceFinder
    {
        [Bean]
        protected IServiceBus serviceBus;

        public ServiceItem FindServiceByType(string type)
        {
            return serviceBus.FindServiceByType(type);
        }
    }
}
